package com.xpffly.design.mediator.service.impl;

import com.xpffly.design.mediator.service.AbstractColleague;
import com.xpffly.design.mediator.service.AbstractMediator;

/**
 * @Author: xpengfei
 * @Date: 2021/4/5 20:04
 * @Description：采购管理类
 */
public class Purchase extends AbstractColleague {
    public Purchase(AbstractMediator mediator) {
        super(mediator);
    }

    /**
     * 采购IBM的电脑
     *
     * @param number
     */
    public void buyIBMComputer(int number) {
        super.mediator.execute("purchase.buy", number);
    }

    /**
     * 不再采购IBM的电脑
     */
    public void refuseBuyIBM() {
        System.out.println("不再采购IBM的电脑！");
    }
}
